<?php
/**
 * Fend Framework
 * 调用方式 : php run.php test
 * test为类内function
 **/
require_once(dirname(dirname(__FILE__)) . '/router.php');
ini_set('memory_limit', '5120M');

class appMOD extends Fend
{

    /**
     * 脚本主体
     */
    public function test()
    {
        echo "fadsfasdf";
        Fend_Func::load('FendTimer');

    }

}

if (PHP_SAPI == 'cli') {
    $mod = &$_SERVER['argv'][1];
    $app = new appMOD;
    if (method_exists($app, $mod)) {
        $app->$mod();
    } else {
        die("no.\n");
    }
}